]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
portalHelper: Use libadwaita instead of plain Gtk4
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 8 Mar 2023 22:20:20 +0000 (23:20 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 Apr 2023 10:45:19 +0000 (10:45 +0000)
This gives us the proper platform stylesheet, as well as support
for dark style and other platform features.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2690>

js/portalHelper/main.js

index 8ebeee28d44b6d58fe98db55503ebb1f04543454..186259609be1fe03e825310333bfdfdb6cf1cdd2 100644 (file)
@@ -1,9 +1,10 @@
 /* exported main */
+imports.gi.versions.Adw = '1';
 imports.gi.versions.Gtk = '4.0';
 imports.gi.versions.WebKit = '6.0';
 
 const Gettext = imports.gettext;
-const {Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
+const {Adw, Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
 
 const _ = Gettext.gettext;
 
@@ -279,7 +280,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
 });
 
 var WebPortalHelper = GObject.registerClass(
-class WebPortalHelper extends Gtk.Application {
+class WebPortalHelper extends Adw.Application {
     _init() {
         super._init({
             application_id: 'org.gnome.Shell.PortalHelper',